package com.itbaizhan.banner.controller;

import com.itbaizhan.banner.service.BannerService;
import com.itbaizhan.common.vo.LivegoodsResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 控制层
 */
@RestController
public class BannerController {

    @Autowired
    private BannerService bannerService;

    @GetMapping("/banner")
    public LivegoodsResult showBanner() {
        return bannerService.showBanner();
    }

}
